<?php
include_once '../AtacCommunicator/ACBusWaitingTimes.php';
include_once '../Exceptions/CommunicationException.php';
include_once '../InfoManager/InfoManager.php';
include_once '../Model/BusStop.php';
include_once '../Model/Location.php';
include_once '../Model/Address.php';
include_once '../Model/GPS.php';
include_once '../Utility/DebugLogs.php';
include_once '../InfoManager/Constants.php';



	//$_GET["stopID"] = '74635';

	if (isset($_GET["stopID"]))
	{
		try {
			//          BusStop(name, atacID)
			$stop = new BusStop(null, RMobUtils::escape_var($_GET["stopID"]));
			
			//extended mode
			echo $stop->toXML(EXTENDED_MODE);
			
			}
		catch (Exception $e) {
			echo $e->toXML(EXTENDED_MODE);
		}
	}

?>
